﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Skutl.is - Breyta lykilorði
</asp:Content>

<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    
    <div id="TextContent">
    
    <h2>Breyta lykilorði</h2>
   <%-- <p>
        Use the form below to change your password. 
    </p>--%>
    <p>
        Nýtt lykilorð á að vera að minnsta kosti <%=Html.Encode(ViewData["PasswordLength"])%> stafir að lengd.
    </p>
    <%= Html.ValidationSummary("Ekki tókst að breyta lykilorði. Vinsamlegast reynið aftur.")%>

    <% using (Html.BeginForm()) { %>
        <div>
            <%--<fieldset>--%>
                <%--<legend>Account Information</legend>--%>
                <p>
                    <label for="currentPassword">Núverandi lykilorð:</label>
                    <%= Html.Password("currentPassword") %>
                    <%= Html.ValidationMessage("currentPassword") %>
                </p>
                <p>
                    <label for="newPassword">Nýtt lykilorð:</label>
                    <%= Html.Password("newPassword") %>
                    <%= Html.ValidationMessage("newPassword") %>
                </p>
                <p>
                    <label for="confirmPassword">Staðfesta nýtt lykilorð:</label>
                    <%= Html.Password("confirmPassword") %>
                    <%= Html.ValidationMessage("confirmPassword") %>
                </p>
                <p>
                    <input type="submit" value="Staðfesta" />
                </p>
            <%--</fieldset>--%>
        </div>
    <% } %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
    <% Html.RenderPartial("UpcomingToursPartial", ViewData["UpcomingTours"]); %>
</asp:Content>